package com.jugheadzhou.auth.core.common.api;

public enum ResultCode implements ErrorCode {
    SUCCESS(0, "操作成功"),
    FAILED(500, "操作失败"),
    CONNECT_FAILED(501, "服务连接失败"),
    VALIDATE_FAILED(400, "参数不正确"),
    NOT_FOUND(404, "接口不存在"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限");
    private long code;
    private String message;

    ResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
